define(()=>{
    return function(data,index,j){
        let str = "";
        for (let i = index * j; i < index * j + j; i++) {
            if (i < data.length) {
            str +=`<li class="sp-list1 box" index="${data[i].proId}">
            <a  href="../third-Magnifier.html?id=${data[i].proId}">
            <img src="${data[i].img}" alt="" >
            <p class="item-name"><a rel="nofollow" class="item-link" herf="./third-Magnifier.js">${data[i].proName}</a></p>
            <p class="item-comment-dispatching">
            <a href="" class="comment">
            <span class="grey" style="font-size: 12px
            ;">已有</span>
            2910
            <span class="grey">人评价</span>
            </a>
            </p></a>           
            <p class="item-shop"><span class="nnamezy">自营</span></p>
            <p class="item-price">
                <span class="price">￥${data[i].price}</span>
            </p>
            <p class="item-option">
                加入购物车
            </p>
        </li>`
            }
       
        }
        $(".cont").html(str)
    }
})